package com.victor.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * banner对应的成长方案表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "bannertogrowplan")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BannerToGrowplan implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// id

	@Column(name = "month", length = 50)
	private String month;// 月份

	@Column(name = "bannerid", length = 50)
	private String bannerid;// banner表id

	@Column(name = "ageid", length = 50)
	private String ageid;// 年龄段表id

	@Column(name = "picturebookid", length = 50)
	private String picturebookid;// 对应绘本id

//	@Transient
//	private List<Age> age;

	@Transient
	private Picturebook picturebook;
	
	private static final long serialVersionUID = 1L;
}
